home *** CD-ROM | disk | FTP | other *** search
/ Capture the Power of the Internet / Capture the Power of the Internet.iso / mac / MacFiles / System / Calculators / mathpad.sit / MathPad 2.5.2 / incl / histogram < prev    next >
MacBinary  |  1996-03-25  |  1.4 KB  |  [TEXT/MPad]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Mon Mar 25 15:31:56 1996, modified Mon Mar 25 15:31:56 1996, creator 'MPad', type ASCII, 768 bytes "histogram" , at 0x380 398 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPad]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 68 69 73 74 6f 67 | 72 61 6d 00 00 00 00 00 |..histog|ram.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 61 | 64 00 00 00 00 00 00 00 |.TEXTMPa|d.......|
|00000050| 00 00 00 00 00 03 00 00 | 00 01 8e ad 7c b3 3c ad |........|....|.<.|
|00000060| 7c b3 3c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 ||.<.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 55 e2 00 00 |........|....U...|
|00000080| 2d 2d 20 68 69 73 74 6f | 28 61 72 72 61 79 2c 6c |-- histo|(array,l|
|00000090| 6f 2c 68 69 2c 6e 62 69 | 6e 73 29 20 61 63 63 75 |o,hi,nbi|ns) accu|
|000000a0| 6d 75 6c 61 74 65 73 20 | 61 20 68 69 73 74 6f 67 |mulates |a histog|
|000000b0| 72 61 6d 20 6f 66 20 76 | 61 6c 75 65 73 20 66 72 |ram of v|alues fr|
|000000c0| 6f 6d 20 27 61 72 72 61 | 79 27 2e 20 52 65 74 75 |om 'arra|y'. Retu|
|000000d0| 72 6e 73 20 74 68 65 20 | 68 69 73 74 6f 67 72 61 |rns the |histogra|
|000000e0| 6d 20 69 6e 20 27 62 69 | 6e 73 27 2e 20 41 6c 73 |m in 'bi|ns'. Als|
|000000f0| 6f 20 63 61 6c 63 75 6c | 61 74 65 73 20 74 6f 74 |o calcul|ates tot|
|00000100| 61 6c 2c 6d 65 61 6e 20 | 61 6e 64 20 73 74 64 65 |al,mean |and stde|
|00000110| 76 20 6f 66 20 76 61 6c | 75 65 73 20 62 65 74 77 |v of val|ues betw|
|00000120| 65 65 6e 20 27 6c 6f 27 | 20 61 6e 64 20 27 68 69 |een 'lo'| and 'hi|
|00000130| 27 2e 20 53 65 65 20 61 | 6c 73 6f 3a 20 22 68 69 |'. See a|lso: "hi|
|00000140| 73 74 6f 67 72 61 6d 22 | 20 58 46 75 6e 2e 0d 0d |stogram"| XFun...|
|00000150| 2d 2d 20 6d 61 78 28 61 | 72 72 61 79 29 20 66 69 |-- max(a|rray) fi|
|00000160| 6e 64 73 20 6d 61 78 20 | 76 61 6c 75 65 20 69 6e |nds max |value in|
|00000170| 20 61 72 72 61 79 0d 0d | 68 69 73 74 6f 28 61 72 | array..|histo(ar|
|00000180| 72 61 79 2c 6c 6f 2c 68 | 69 2c 6e 62 69 6e 73 29 |ray,lo,h|i,nbins)|
|00000190| 20 3d 20 74 6f 74 61 6c | 20 3a 3d 20 30 2c 0d 20 | = total| := 0,. |
|000001a0| 20 20 73 75 6d 6e 20 3a | 3d 20 30 2c 20 73 75 6d | sumn :|= 0, sum|
|000001b0| 73 71 20 3a 3d 20 30 2c | 0d 20 20 20 73 63 6c 20 |sq := 0,|. scl |
|000001c0| 3a 3d 20 6e 62 69 6e 73 | 2f 28 68 69 2d 6c 6f 29 |:= nbins|/(hi-lo)|
|000001d0| 2c 0d 20 20 20 62 69 6e | 73 3a 3d 30 5b 3a 6e 62 |,. bin|s:=0[:nb|
|000001e0| 69 6e 73 5d 2c 0d 20 20 | 20 69 3a 3d 31 2c 0d 20 |ins],. | i:=1,. |
|000001f0| 20 20 28 0d 20 20 20 20 | 6e 75 6d 3a 3d 61 72 72 | (. |num:=arr|
|00000200| 61 79 5b 69 5d 2c 0d 20 | 20 20 20 69 3a 3d 69 2b |ay[i],. | i:=i+|
|00000210| 31 2c 0d 20 20 20 20 28 | 6a 20 3a 3d 20 74 72 75 |1,. (|j := tru|
|00000220| 6e 63 28 28 6e 75 6d 2d | 6c 6f 29 2a 73 63 6c 29 |nc((num-|lo)*scl)|
|00000230| 2b 31 2c 0d 20 20 20 20 | 20 62 69 6e 73 5b 6a 5d |+1,. | bins[j]|
|00000240| 20 3a 3d 20 62 69 6e 73 | 5b 6a 5d 2b 31 2c 0d 20 | := bins|[j]+1,. |
|00000250| 20 20 20 20 74 6f 74 61 | 6c 20 3a 3d 20 74 6f 74 | tota|l := tot|
|00000260| 61 6c 2b 31 2c 0d 20 20 | 20 20 20 73 75 6d 6e 20 |al+1,. | sumn |
|00000270| 3a 3d 20 73 75 6d 6e 2b | 6e 75 6d 2c 0d 20 20 20 |:= sumn+|num,. |
|00000280| 20 20 73 75 6d 73 71 20 | 3a 3d 20 73 75 6d 73 71 | sumsq |:= sumsq|
|00000290| 20 2b 20 6e 75 6d 2a 6e | 75 6d 29 20 77 68 65 6e | + num*n|um) when|
|000002a0| 20 6e 75 6d b3 6c 6f 20 | 61 6e 64 20 6e 75 6d 3c | num.lo |and num<|
|000002b0| 68 69 29 20 77 68 69 6c | 65 20 69 20 b2 20 63 6f |hi) whil|e i . co|
|000002c0| 75 6e 74 28 61 72 72 61 | 79 29 0d 0d 6d 65 61 6e |unt(arra|y)..mean|
|000002d0| 20 3d 20 73 75 6d 6e 2f | 74 6f 74 61 6c 0d 73 74 | = sumn/|total.st|
|000002e0| 64 65 76 20 3d 20 73 71 | 72 74 28 28 73 75 6d 73 |dev = sq|rt((sums|
|000002f0| 71 2d 73 75 6d 6e 2a 73 | 75 6d 6e 2f 74 6f 74 61 |q-sumn*s|umn/tota|
|00000300| 6c 29 2f 28 74 6f 74 61 | 6c 2d 31 29 29 0d 0d 6d |l)/(tota|l-1))..m|
|00000310| 61 78 28 61 72 72 61 79 | 29 20 3d 20 6d 61 78 76 |ax(array|) = maxv|
|00000320| 3a 3d 2d 31 2f 30 2c 0d | 20 20 69 3a 3d 30 2c 0d |:=-1/0,.| i:=0,.|
|00000330| 20 20 28 69 3a 3d 69 2b | 31 2c 0d 20 20 20 6d 61 | (i:=i+|1,. ma|
|00000340| 78 76 3a 3d 61 72 72 61 | 79 5b 69 5d 20 77 68 65 |xv:=arra|y[i] whe|
|00000350| 6e 20 61 72 72 61 79 5b | 69 5d 3e 6d 61 78 76 29 |n array[|i]>maxv)|
|00000360| 20 77 68 69 6c 65 20 69 | b2 20 63 6f 75 6e 74 28 | while i|. count(|
|00000370| 61 72 72 61 79 29 2c 0d | 20 20 6d 61 78 76 0d 0d |array),.| maxv..|
|00000380| 00 00 01 00 00 00 01 3c | 00 00 00 3c 00 00 00 52 |.......<|...<...R|
|00000390| 00 00 00 2c 00 00 00 00 | 0f 1e ff ff 00 00 00 00 |...,....|........|
|000003a0| 00 00 00 00 0f 52 ff ff | 00 00 00 2c 00 00 00 00 |.....R..|...,....|
|000003b0| 09 68 69 73 74 6f 67 72 | 61 6d 02 00 00 00 54 45 |.histogr|am....TE|
|000003c0| 58 54 4d 50 61 64 01 00 | 00 34 01 40 00 00 00 00 |XTMPad..|.4.@....|
|000003d0| 00 00 54 45 58 54 4d 50 | 61 64 01 00 00 34 01 40 |..TEXTMP|ad...4.@|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 aa 05 94 33 00 00 | 03 00 00 00 01 8e 00 00 |.....3..|........|
|00000400| 00 00 00 00 11 b2 ff ff | 00 00 00 2c 00 00 00 00 |........|...,....|
|00000410| 11 ba ff ff 00 00 02 59 | 00 00 00 00 12 22 ff ff |.......Y|....."..|
|00000420| 00 00 00 2c 00 00 00 00 | 13 42 ff ff 00 00 00 2c |...,....|.B.....,|
|00000430| 00 00 00 00 13 f0 ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 13 f6 ff ff 00 00 00 00 | 00 00 00 00 15 f4 ff ff |........|........|
|00000450| ff ff ff fc 00 00 00 00 | 16 06 ff ff ff ff ff fc |........|........|
|00000460| 00 00 00 00 16 e0 ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 16 ea ff ff 00 00 00 00 | 00 00 00 00 18 34 ff ff |........|.....4..|
|00000480| 00 00 00 20 02 00 00 03 | 00 02 3f f9 8e fa 35 12 |... ....|..?...5.|
|00000490| 94 e9 c8 ae 01 5b 00 59 | 00 03 00 26 01 06 01 2c |.....[.Y|...&...,|
|000004a0| 01 9b 00 3c 00 00 00 14 | 00 04 06 4d 6f 6e 61 63 |...<....|...Monac|
|000004b0| 6f 01 39 06 4d 6f 6e 61 | 63 6f 01 39 00 00 01 00 |o.9.Mona|co.9....|
|000004c0| 00 00 01 3c 00 00 00 3c | 00 00 00 52 01 49 5f 18 |...<...<|...R.I_.|
|000004d0| 0e b2 00 00 00 1c 00 46 | 00 01 50 52 65 66 00 00 |.......F|..PRef..|
|000004e0| 00 12 53 54 52 23 00 00 | 00 1e 00 80 ff ff 00 00 |..STR#..|........|
|000004f0| 00 00 01 49 61 04 00 81 | 00 00 00 00 00 24 01 49 |...Ia...|.....$.I|
|00000500| 61 0c 0b 66 6f 6e 74 20 | 26 20 73 69 7a 65 00 00 |a..font |& size..|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+